import { createStore } from 'vuex'

export default createStore({
  state: {
    // 这里就是 resumeData 的老家！
    resumeData: null, // 初始值为 null
    currentResume:null,
  },
  getters: {
  },
  mutations: {
    // 这个 mutation 用来修改 resumeData
    SET_RESUME_DATA(state, payload) {
      state.resumeData = payload; // 把数据存入 resumeData
    },
    // 用于设置当前查看的单个简历
    SET_CURRENT_RESUME_INFO(state, payload) {
      state.currentResume = payload
    },
    //用于企业详情
    SET_COMPANYINFO_DATA(state, payload){
      state.companyData = payload
    },
    SET_CURRENT_JOB_INFO(state, payload){
      state.jobListData = payload
    }
  },
  actions: {
  },
  modules: {
  }
})
